#include "shootitem.h"
#include<QPixmap>
#include"counter.h"
ShootItem::ShootItem()
{
    QPixmap *p = new QPixmap(":/seatsmall.jpg");
    this->setPixmap(*p);
}
void ShootItem::SetPic(QString path){
    QPixmap *p = new QPixmap(path);
    this->setPixmap(*p);
}
void ShootItem::mousePressEvent(QGraphicsSceneMouseEvent *event){
    counter *count = counter::getExample();
    if(this->KND){
        count->addScore();
        this->SetPic(":/seatsmall.jpg");
        this->KND = 0;
    }
}

